quadratic inequalities tricks